<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-satisfaction-window-his-pop" data-options="border:false;width:100%">
	<div class="easyui-panel list-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
	  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
			<p>
				<span class="badge">提示</span>
				 <strong><font color="red">双击</font></strong> 记录行, 可以查看门诊窗口满意度详情
			</p>			
		</div>   
	
		<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto',
		pagination : true">
		
			<thead>						
				<tr>				
					<th field="dept_name" width="60" align="center">科室名称</th>
					<th field="cnt" width="40" align="center">就诊人数</th>
					<th field="total_num" width="40" align="center">评价人数</th>
					<th field="satisfy_0" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value > 0){
								return 'color:green;';							
							}
						}
					">非常满意</th>
					<th field="satisfy_1" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value > 0){
								return 'color:green;';							
							}
						}
					">满意</th>
					<th field="satisfy_2" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value > 0){
								return 'color:green;';							
							}
						}
					">一般满意</th>				
					<th field="satisfy_4" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value > 0){
								return 'color:red;';							
							}
						}
					">不满意</th>					
					<th field="satisfy_rate" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value){
								if( value <= 70)
								return 'color:red;';
								else
								return 'color:green;';							
							}else
							return null
						},formatter: function(value,row,index){
							if (value > 0){
								return   value.toFixed(2) +'%';							
							}
						}
						
					">满意率</th>												
				</tr>                         
			</thead>			
		</table>
	</div>
	
	<div class="easyui-panel details-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
	  	   
		<div>						
			<a href="javascript:void(0);" class="easyui-linkbutton function-btn l-btn l-btn-small l-btn-plain" iconcls="icon-undo" plain="true">返回</a>
		</div>
		<table class="easyui-datagrid dg-list"  
			data-options="rownumbers:true,
			animate: true,							
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',					
			fitColumns: true,
			checkOnSelect:true,
			selectOnCheck:true,
			width : 'auto',
			pagination : true">
			
			<thead>						
				<tr>				
					<th field="doct_name" width="60" align="center">人员姓名</th>
					<th field="cnt" width="40" align="center">就诊人数</th>
					<th field="total_num" width="40" align="center">评价人数</th>
					<th field="satisfy_0" width="40" align="center" >非常满意</th>
					<th field="satisfy_1" width="40" align="center" >满意</th>
					<th field="satisfy_2" width="40" align="center" >基本满意</th>				
					<th field="satisfy_3" width="40" align="center">基本不满意</th>
					<th field="satisfy_4" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value > 0){
								return 'color:red;';							
							}
						}
					">不满意</th>		
					<th field="satisfy_rate" width="40" align="center" data-options="
						styler: function(value,row,index){
							if (value){
								if( value <= 70)
								return 'color:red;';
								else
								return 'color:green;';							
							}else
							return null
						},formatter: function(value,row,index){
							if (value > 0){
								return   value.toFixed(2) +'%';							
							}
						}
						
					">满意率</th>											
				</tr>                    
			</thead>
			
		</table>
	</div>
	
</div> 

 
<script>
requirejs(['popListPage','satisfactionWindowHisInfo','domReady!'],function(flowedit,satisfactionWindow,doc){
	flowedit.init({doc:doc,
		rootId:'panel-satisfaction-window-his-pop',				
		subSystemCode:'satisfaction',
		moduleCode:'satisEvaluateHisInfo',
		queryModule:'satisEvaluateHis',
		cellClick:satisfactionWindow.clickCell,
		rowClick:satisfactionWindow.clickBizRow,
		initElement:satisfactionWindow.initElement,
		queryMethod:'getWindowDomain'
	});
});	
</script>

